[JS高分 JS特效求助]JS菜单特效

来源:百度知道 编辑:UC知道 时间:2024/06/15 12:46:41
http://www.kanwode.tv/js/hao.html
http://www.kanwode.tv/js/css.css

就是把第三行 红色的“展开 关闭”移到 下面那个表格得第一格里
,(1VS22010)前面那格
谢谢大家先
http://www.kanwode.tv/js/js.rar
这是整个包的地址,可以下载到本地试一下效果

改好了`要优化`修改了HTML页面和其JS`CSS没动
<link href="css.css" rel="stylesheet" type="text/css">
<script>
<!--
var s=490;
var minheight=52;
var maxheight=200;
function shoppingcat(obj){
var key = obj.innerText;
var content=document.getElementById("content");
if(content.style.pixelHeight==0)content.style.pixelHeight=minheight;
if(key=="展开"){
content.style.pixelHeight+=s;
if(content.style.pixelHeight<maxheight){
setTimeout("shoppingcat();",1);
}else{
obj.innerText="关闭";
}
}else{
content.style.pixelHeight-=s;
if(content.style.pixelHeight>minheight){
setTimeout("shoppingcat(obj);",1);
}else{
obj.innerText="展开";
}
}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.op